package com.highspeed.bdk.gateway.entity;

public class LuckMessage {

    private LuckHeader luckHeader;
    private byte[] content;
    private int end = 0xAAAAAAAA;

    public LuckMessage(LuckHeader luckHeader, byte[] content) {
        this.luckHeader = luckHeader;
        this.content = content;
    }

    public LuckHeader getLuckHeader() {
        return luckHeader;
    }

    public void setLuckHeader(LuckHeader luckHeader) {
        this.luckHeader = luckHeader;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }
//    @Override
//    public String toString() {
//        return String.format("[version=%d,contentLength=%d,sessionId=%s,content=%s]",
//                luckHeader.getVersion(),
//                luckHeader.getContentLength(),
//                luckHeader.getSessionId(),
//                content);
//    }
}